package com.gibs.peixunapi.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
//@Table(name = "ExamClassInfo")
public class ExamClassInfo extends BaseModel {	//考试班级信息
	private String name;     //名称
	private Integer number;     //班级人数
	@ManyToOne(cascade = CascadeType.REFRESH)
	private ExamInfo examInfo;     //考试id
	private String code;     //考场校验码
	private Double proportion;     //笔试成绩比重
	private Date examStartTime;     //考试开始时间
	private Date examEndTime;     //考试结束时间
	private Date correctStartTime;     //阅卷开始时间
	private Date correctEndTime ;     //阅卷结束时间
	private Date announceResultTime;     //成绩公布时间

	/** 等待开始: -1 考试中: 0 阅卷中: 1 考试完成: 2*/
	private Integer examStatus;     //考试状态


}

